package loan.calc.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import loan.calc.constant.dict.YNEnum;
import lombok.Data;

import java.io.Serializable;

/**
 * 数据字典表
 * @TableName dict
 */
@TableName(value ="dict")
@Data
@Schema(description = "数据字典实体", name = "DictDO", title = "数据字典")
public class DictDO extends BaseEntity implements Serializable {
    /**
     * 字典值
     */
    @TableId
    @Schema(description = "字典值")
    private String value;

    /**
     * 字典名称
     */
    @Schema(description = "字典名称")
    private String description;

    /**
     * 是否系统内置
     */
    @Schema(description = "是否系统内置")
    private YNEnum systemDict;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
